<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加成员</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="../css/style.css">

    <!-- 上传图片框样式，不使用上传组件可以删除此样式 -->
    <style>
        .avatar-uploader .el-upload {
            border: 1px dashed #d9d9d9;
            border-radius: 6px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .avatar-uploader .el-upload:hover {
            border-color: #409EFF;
        }

        .avatar-uploader-icon {
            font-size: 28px;
            color: #8c939d;
            width: 150px;
            height: 70px;
            line-height: 150px;
            text-align: center;
        }

        .avatar {
            width: 150px;
            height: 70px;
            display: block;
        }

    </style>
</head>
<body class="hold-transition">
<div id="app">

    <div class="content-header">
        <h1>管理
            <small>添加成员</small>
        </h1>
        <el-breadcrumb separator-class="el-icon-arrow-right" class="breadcrumb">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item>管理</el-breadcrumb-item>
            <el-breadcrumb-item>添加成员</el-breadcrumb-item>
        </el-breadcrumb>
    </div>

    <div class="app-container">
        <div class="box" >
            <div class="filter-container">
                <el-form :inline="true" label-width="480px">
                    <el-form-item label="成员名称:">
                        <el-input v-model="searchMap.loginName" placeholder="成员名称" class="filter-item"></el-input>
                    </el-form-item>
                    <el-form-item label="成员姓名:">
                        <el-input v-model="searchMap.ip" placeholder="成员姓名" class="filter-item"></el-input>
                    </el-form-item>
                    <el-form-item label="邮箱地址:">
                        <el-input v-model="searchMap.browserName" placeholder="邮箱地址"
                                  class="filter-item"></el-input>
                    </el-form-item>

                    <el-form-item label="所属角色:">
                    <el-select v-model="value" placeholder="请选择">
                        <el-option
                                v-for="item in options"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                        </el-option>
                    </el-select>
                    </el-form-item>

                    <el-form-item label="登录密码:">
                        <el-input v-model="searchMap.location" placeholder="登录密码" class="filter-item"></el-input>
                    </el-form-item>
                    <el-form-item label="确认密码:">
                        <el-input v-model="searchMap.loginTime" placeholder="确认密码" class="filter-item"></el-input>
                    </el-form-item>
                    <el-form-item label="备注信息:">
                        <el-input
                                type="textarea"
                                :rows="2"
                                placeholder="请输入内容"
                                v-model="textarea">
                        </el-input>
                    </el-form-item>

                    <el-button type="primary" @click="fetchData()" label-width="480px">提交</el-button>


                </el-form>
            </div>


            <div class="add-form" >
            </div>

        </div>
    </div>


</div>
</body>
<script src="/js/vue.js"></script>
<script src="/js/axios.js"></script>
<script src="/js/elementui.js"></script>
<script>
    new Vue({
        el: '#app',
        data() {
            return {
                tableData: [],
                currentPage: 1,
                total: 10,
                size: 10,
                searchMap: {},
                pojo: {},
                formVisible: false,
                imageUrl: '',
                options: [{
                    value: '选项1',
                    label: '黄金糕'
                }, {
                    value: '选项2',
                    label: '双皮奶'
                }, {
                    value: '选项3',
                    label: '蚵仔煎'
                }, {
                    value: '选项4',
                    label: '龙须面'
                }, {
                    value: '选项5',
                    label: '北京烤鸭'
                }],
                value:''
            }
        },
        created() {
            this.fetchData();
        },
        methods: {
            fetchData() {
                axios.get(`/loginLog/findPageByLogin.do?page=${this.currentPage}&size=${this.size}`).then(response => {
                    this.tableData = response.data.rows;
                    this.total = response.data.total;
                });
            }
        }
    })
</script>
</html>
